// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// This Source Code Form is "Incompatible With Secondary Licenses", as
// defined by the Mozilla Public License, v. 2.0.
//
// Copyright (c) 2020 UXBOX Labs SL

.dashboard-container {
  background-color: $color-dashboard;
  border-top-right-radius: $br-huge;
  border-top-left-radius: $br-huge;
  flex: 1 0 0;
  margin-right: $medium;
  overflow-y: auto;

  &.search {
    margin-top: 10px;
  }
}

.dashboard-project-row {
  margin-bottom: $medium;

  .project {
    align-items: center;
    background: $color-white;
    border-radius: $br-small;
    display: flex;
    flex-direction: row;
    margin-left: $medium;
    margin-top: $medium;
    padding: $x-small $x-small $x-small $small;
    width: fit-content;
    height: 40px;

    .btn-secondary {
      margin-left: $big;
      height: 32px;
    }

    h2 {
      cursor: pointer;
      font-size: 15px;
      line-height: 1rem;
      font-weight: unset;
      color: $color-black;
      margin-right: $medium;
    }

    .info {
      font-size: 15px;
      line-height: 1rem;
      font-weight: unset;
      color: $color-gray-30;
    }

    .pin-icon {
      cursor: pointer;
      display: flex;
      align-items: center;
      margin-right: 10px;
      svg {
        width: 15px;
        height: 15px;
        fill: $color-gray-20;
      }

      &.active {
        svg { fill: $color-gray-50; }
      }
    }
  }
}

.recent-files-row-title-info {
  font-size: $fs15;
}

.dashboard-table {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  font-size: $fs16;

  .table-header {
    max-width: 1040px;
    display: flex;
    background-color: $color-white;
    color: $color-gray-30;
    width: 100%;
    height: 40px;
    align-items: center;
    padding: 0px 16px;
  }

  .table-rows {
    display: flex;
    flex-direction: column;
    max-width: 1040px;
    width: 100%;
    margin-top: 20px;
    color: $color-black;
  }

  .table-row {
    display: flex;
    width: 100%;
    height: 45px;
    align-items: center;
    padding: 0px 16px;
  }

  .table-field {
    display: flex;
    align-items: center;

    .icon {
      padding-left: 10px;
      cursor: pointer;
    }
  }

  svg {
    width: 10px;
    height: 10px;
    fill: $color-black;
  }
}


.edit-wrapper {
  border: 1px solid $color-gray-10;
  border-radius: $br-small;
  display: flex;
  position: relative;

  input.element-title {
    border: 0;
    height: 30px;
    padding: 5px;
    margin: 0;
    width: 100%;
    background-color: $color-white;
  }

  .close {
    cursor: pointer;
    position: absolute;

    top: 1px;
    right: 2px;

    svg {
      fill: $color-gray-30;
      height: 15px;
      transform: rotate(45deg) translateY(7px);
      width: 15px;
      margin: 0;
    }
  }
}
